<script setup>
import { RouterView } from 'vue-router'
</script>

<template>
  <!-- 应用外壳：仅渲染当前路由页面 -->
  <RouterView />
</template>

<style>
/* 全局样式重置与布局基础 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
}

#app {
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* 页面容器工具类 */
.page-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* Element Plus 表单的居中修饰 */
.el-form {
  width: 100%;
}

.el-form-item {
  text-align: center;
}

.el-form-item__label {
  text-align: center !important;
}

.el-form-item__content {
  display: flex !important;
  justify-content: center !important;
}
</style>
